package com.wl.cloud.core.enums;

/**
 * @author: wanglin
 * @date: 2023-07-12 周三
 * @Version: 1.0
 * @Description:
 */
public enum ErrorCode {

    BAD_REQUEST(400, "BAD_REQUEST"), //错误请求
    UNAUTHORIZED(401, "UNAUTHORIZED"),//无权限
    FORBIDDEN(403, "FORBIDDEN"), //禁止访问
    INTERNAL_SERVER_ERROR(500, "INTERNAL_SERVER_ERROR"), //网络异常
    UNKNOWN(1, "UNKNOWN"), //未知异常
    SYSTEM_EXCEPTION(2, "SYSTEM_EXCEPTION"),//系统异常
    SERVICE_EXCEPTION(3, "SERVICE_EXCEPTION");//服务异常
    public int code;
    public String statusInfo;

    ErrorCode(int code, String statusInfo) {
        this.code = code;
        this.statusInfo = statusInfo;
    }

}
